package week1;

import java.util.Scanner;

public class Main2 {

	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		while(sc.hasNextLine())
		{
			int num=0;
			int a=32;
			String s=null;
			num=sc.nextInt();
			s=Integer.toBinaryString(num);
			if(num!=0)
			{
				int b=0;
				b=a-s.length();
				System.out.println(b);
			}
			else
			{
				System.out.println(a);
			}
		}
	sc.close();
	}
		

}
